package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzbqDeviceinfomanufacturersMapper;
import com.ruoyi.system.domain.DzbqDeviceinfomanufacturers;
import com.ruoyi.system.service.IDzbqDeviceinfomanufacturersService;

/**
 * 生产商Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-05
 */
@Service
public class DzbqDeviceinfomanufacturersServiceImpl implements IDzbqDeviceinfomanufacturersService 
{
    @Autowired
    private DzbqDeviceinfomanufacturersMapper dzbqDeviceinfomanufacturersMapper;

    /**
     * 查询生产商
     * 
     * @param manufacturerId 生产商主键
     * @return 生产商
     */
    @Override
    public DzbqDeviceinfomanufacturers selectDzbqDeviceinfomanufacturersByManufacturerId(Long manufacturerId)
    {
        return dzbqDeviceinfomanufacturersMapper.selectDzbqDeviceinfomanufacturersByManufacturerId(manufacturerId);
    }

    /**
     * 查询生产商列表
     * 
     * @param dzbqDeviceinfomanufacturers 生产商
     * @return 生产商
     */
    @Override
    public List<DzbqDeviceinfomanufacturers> selectDzbqDeviceinfomanufacturersList(DzbqDeviceinfomanufacturers dzbqDeviceinfomanufacturers)
    {
        return dzbqDeviceinfomanufacturersMapper.selectDzbqDeviceinfomanufacturersList(dzbqDeviceinfomanufacturers);
    }

    /**
     * 新增生产商
     * 
     * @param dzbqDeviceinfomanufacturers 生产商
     * @return 结果
     */
    @Override
    public int insertDzbqDeviceinfomanufacturers(DzbqDeviceinfomanufacturers dzbqDeviceinfomanufacturers)
    {
        return dzbqDeviceinfomanufacturersMapper.insertDzbqDeviceinfomanufacturers(dzbqDeviceinfomanufacturers);
    }

    /**
     * 修改生产商
     * 
     * @param dzbqDeviceinfomanufacturers 生产商
     * @return 结果
     */
    @Override
    public int updateDzbqDeviceinfomanufacturers(DzbqDeviceinfomanufacturers dzbqDeviceinfomanufacturers)
    {
        return dzbqDeviceinfomanufacturersMapper.updateDzbqDeviceinfomanufacturers(dzbqDeviceinfomanufacturers);
    }

    /**
     * 批量删除生产商
     * 
     * @param manufacturerIds 需要删除的生产商主键
     * @return 结果
     */
    @Override
    public int deleteDzbqDeviceinfomanufacturersByManufacturerIds(Long[] manufacturerIds)
    {
        return dzbqDeviceinfomanufacturersMapper.deleteDzbqDeviceinfomanufacturersByManufacturerIds(manufacturerIds);
    }

    /**
     * 删除生产商信息
     * 
     * @param manufacturerId 生产商主键
     * @return 结果
     */
    @Override
    public int deleteDzbqDeviceinfomanufacturersByManufacturerId(Long manufacturerId)
    {
        return dzbqDeviceinfomanufacturersMapper.deleteDzbqDeviceinfomanufacturersByManufacturerId(manufacturerId);
    }
}
